package com.woniuxy.service;

import com.nimbusds.jose.JOSEException;
import com.woniuxy.entity.User;
import com.woniuxy.util.ResponseData;

import java.text.ParseException;

public interface UserService {

    /**
     * 登录
     * @param user
     * @return
     */
    ResponseData<?> login(User user) throws JOSEException;

    /**
     * 用户添加购物车
     */
    ResponseData<?> addCart(Integer id, Integer buyNum) throws ParseException;

    /**
     * 查询用户购物车和地址
     * @return
     */
    ResponseData<?> queryUserCartAndAddr() throws ParseException;
}
